/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.risk.integral.entity;

import com.hopes.boss.admin.api.resolver.DictResolver;
import com.hopes.bizz.risk.common.constant.enums.RiskIntegralDicEnum;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.hopes.boss.common.entity.BaseLogicEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;

/**
 * 积分商品管理
 *
 * @author liujiaqi
 * @date 2023-07-25 14:39:19
 */
@Data
@TableName("risk_integral_goods")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "积分商品管理")
public class RiskIntegralGoodsEntity extends BaseLogicEntity {

    private static final long serialVersionUID = 1L;


	/**
	* id
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="id")
    private Long id;

	/**
	* 商品名称
	*/
    @Schema(description="商品名称")
    private String goodsName;

	/**
	* 商品编号
	*/
    @Schema(description="商品编号")
    private String goodsNumber;

	/**
	* 状态
	*/
    @Schema(description="状态")
    private Integer status;

	/**
	* 单个商品兑换积分
	*/
    @Schema(description="单个商品兑换积分")
    private Integer exchangeIntegral;

	/**
	* 库存数量
	*/
    @Schema(description="库存数量")
    private Integer quantityNumber;

	/**
	* 商品单位
	*/
    @Schema(description="商品单位")
    private String goodsUnit;

	/**
	* 商品图片
	*/
    @Schema(description="商品图片")
    private String goodsImage;

	/**
	* 商品描述
	*/
    @Schema(description="商品描述")
    private String goodsDesc;

	/**
	* 机构ID
	*/
    @Schema(description="机构ID")
    private Long orgId;

    public String getStatusStr() {
        return DictResolver.getItemLabelByValue(RiskIntegralDicEnum.risk_integral_goods_status, this.status);
    }
}
